-- GENERATED SPELL FOR [Avarus Kharag] --


function spell0_1679(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(5588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1679', 4340, 1)
end

function spell1_1679(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(1026,pUnit)
pUnit:RegisterEvent('Sorts_1679', 2500, 1)
end

function Sorts_1679(pUnit, Event)
local choix_sorts_1679 = math.random(0, 1)
if choix_sorts_1679 == 0 then
pUnit:RegisterEvent('spell0_1679', 1, 1)
end
if choix_sorts_1679 == 1 then
pUnit:RegisterEvent('spell1_1679', 1, 1)
end
end

function mob1679_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1679', math.random(1500, 3000), 1)
end

function mob1679_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1679_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1679_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1679, 1, 'mob1679_Action')
RegisterUnitEvent(1679, 2, 'mob1679_Leave')
RegisterUnitEvent(1679, 3, 'mob1679_Kill')
RegisterUnitEvent(1679, 4, 'mob1679_Die')
